package com.zis.auth.service;

import com.alibaba.fastjson.JSONObject;

public interface ISercretInter {

    /**
     * 生成前端UI连接校验信息
     * @param clientType
     * @param uiSign
     * @return
     */
    String generater(String clientType, String uiSign) throws Exception;

    /**
     * 用户退出或者刷新系统后，清空服务端用户信息
     * @param token
     * @return
     */
    String clear(String token) throws Exception;

    /**
     * 获取客户端用户信息
     * @param token
     * @return
     */
    String getClient(String token) throws Exception;

    /**
     * 更新客户端用户信息
     * @param client
     * @return
     */
    String updateClientUser(JSONObject client) throws Exception;

    /**
     * 生成短信验证码
     * @param telephone
     * @return
     * @throws Exception
     */
    String getSmsCode(String telephone) throws Exception;

    /**
     * 校验短信验证码
     * @param telephone
     * @return
     * @throws Exception
     */
    String verifySmsCode(String telephone, String authCode) throws Exception;

}
